package com.todo.user.infrastructure.repository;


import com.todo.common.common.entity.response.page.PageResult;
import com.todo.user.infrastructure.entity.condition.UserAuthRecordCondition;
import com.todo.user.infrastructure.entity.po.UserAuthRecordPO;

/**
 * (UserAuthRecord)表服务接口
 *
 * @author zhangwenxiang
 * @since 2024-03-04 21:10:04
 */
public interface UserAuthRecordRepository {

    /**
     * 新增用户鉴权记录
     *
     * @param userAuthRecordPO
     * @return
     */
    Boolean insertUserAuthRecordPO(UserAuthRecordPO userAuthRecordPO);

    /**
     * 根据主键id更新用户鉴权记录
     *
     * @param userAuthRecordPO
     * @return
     */
    Boolean updateUserAuthRecordPOById(UserAuthRecordPO userAuthRecordPO);

    /**
     * 根据主键id删除用户鉴权记录
     *
     * @param id
     * @return
     */
    Boolean removeUserAuthRecordPOById(Long id);

    /**
     * 根据主键id查询用户鉴权记录
     *
     * @param id
     * @return
     */
    UserAuthRecordPO queryUserAuthRecordPOById(Long id);

    /**
     * 多条件查询用户鉴权记录列表
     *
     * @param userAuthRecordCondition
     * @return
     */
    PageResult<UserAuthRecordPO> queryUserAuthRecordPOByCondition(UserAuthRecordCondition userAuthRecordCondition);

    /**
     * 多条件查询用户鉴权记录数量
     *
     * @param userAuthRecordCondition
     * @return
     */
    Long queryCountByCondition(UserAuthRecordCondition userAuthRecordCondition);
}
